package com.springboot.wisdom.serviceApi.user.model.vo;

import com.springboot.wisdom.common.common.constant.LoginTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * ClassName: AppLoginDTO
 *
 * @Author: WangYiHai
 * @Date: 2020/11/6 19:22
 * @Description: TODO
 */
@Data
@ApiModel("登录信息类")
public class LoginDTO implements Serializable {

    @NotNull(message = "请传递类型")
    @ApiModelProperty(value = "登录类型", allowableValues = "USER_PASS-用户密码登录", required = true)
    private LoginTypeEnum loginType = LoginTypeEnum.USER_PASS;

    @NotNull(message = "请传递用户登入信息")
    @ApiModelProperty(value = "登录信息")
    private LoginUserVO loginData;

}